<template>
	<view class="disalog-box" @touchmove.stop.prevent="moveHandle">
		<view class="disalog-content">
			<view class="disalog-title">
				确认选择库位？
			</view>
			<view class="content-box">
				<view class="item">
					仓库：{{info.warehouseName}}
				</view>
				<view class="item">
					库位：{{info.storehouseNo}}
				</view>
				<view class="button-box">
					<view class="button cancel" @click="close">
						取消
					</view>
					<view class="button confirm" @click="confirm">
						确认
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			info:{
				type:Object,
				default:{}
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			moveHandle(){
				return;
			},
			close:function(){
				this.$emit('close');
			},
			confirm:function(){
				this.$emit('confirm');
			},
		}
	}
</script>

<style lang="scss" scoped>
.disalog-box{
		width: 100%;
		height: 100vh;
		position: fixed;
		top: 0;
		left: 0;
		background: rgba(0,0,0,0.6);
		.disalog-content{
			background-color: white;
			border-radius: 10rpx;
			position: absolute;
			top:50%;
			left: 50%;
			animation-name: disalogshow;
			animation-duration:1s;
			min-width: calc(100% - 200rpx);
			max-width: calc(100% - 20rpx);
			transform: translate(-50%,-50%);
			box-sizing: border-box;
			padding: 20rpx;
			.disalog-title{
				text-align: center;
			}
			.content-box{
				margin-top:40rpx;
				font-size: 28rpx;
				line-height:50rpx;
				.button-box{
					margin-top: 60rpx;
					width: 100%;
					display: flex;
					justify-content: space-around;
					.button{
						width:calc(50% - 20rpx);
						height:70rpx;
						line-height:70rpx;
						text-align: center;
						color: white;
						border-radius: 10rpx;
					}
					.cancel{
						background-color: #d4d2d4;
					}
					.confirm{
						background-color: #326ae1;
					}
				}
			}
		}
		
	}
	@keyframes disalogshow {
		0% {
			transform:translate(-50%,-60%);
			// transform: scale(0);
			opacity: 0;
		}
	
		100% {
			transform: translate(-50%,-50%);
			// transform: scale(1);
			opacity: 1;
		}
	}
</style>
